/**
 * Created by baowei on 2018/10/17.
 */
import Request from "../../../../utils/request.js";
export default class {
  // 获取用户信息
  static getUserInfo(params) {
    return Request({
      url: "app/user/queryUserInfo",
      type: "POST",
      data: params,
      headers: {
        "Content-type": "application/json"
      },
    })
  }
  // 修改用户信息
  static updateUserInfo(params) {
    return Request({
      url: "app/user/updatePersonInfo",
      type: "POST",
      data: params,
      headers: {
        "Content-type": "application/json"
      },
    })
  }
  // 获取个人角色名称
  static getRoleName(params) {
    return Request({
      url: "app/user/roleName",
      type: "GET",
      data: params,
      headers: {
        "Content-type": "application/json"
      },
    })
  }
}